<!-- 继承公共视图文件 -->
<extend name="./Application/Admin/View/layout.html" />
 <!-- 可变内容区域 -->
<block name="mid">
    <div class="layui-row">
        <div class="layui-col-md12">
            <div class="panel-heading">
                <h2><i class="fa fa-indent red"></i><strong>&nbsp;&nbsp;添加规格</strong></h2>
            </div>
        </div>
        <hr class="layui-bg-black">
        <div class="layui-col-md6 layui-col-md-offset3" style="margin-top: 30px;">
          <form class="layui-form" action="" method="post">
            <div class="layui-form-item">
                <label class="layui-form-label" style="width:100px;">商品类型</label>
                <div class="layui-input-block" style="width:150px;">
                    <select name="goods_type_id" lay-verify="">
                      <option value="">请选择商品类型</option>
                      <foreach name="list" item="v">
                        <option value="{$v.id}">{$v.name}</option>
                      </foreach>
                    </select>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label" style="width:100px;">规格名称</label>
                <div class="layui-input-block">
                    <input type="text" name="spec_name" required  lay-verify="required" placeholder="例：颜色 " autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label" style="width:100px;">规格项</label>
                <div class="layui-input-block">
                    <textarea name="spec_item" required lay-verify="required" placeholder="例：红色,黄色... (用英文逗号隔开)" class="layui-textarea"></textarea>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-input-block">
                  <button class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button>
                  <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                </div>
            </div>
          </form>
        </div>
    </div>

</block>
<block name="js">
  <script type="text/javascript" src="__ADMIN__assets/js/jquery-2.1.1.min.js"></script>
	<script type="text/javascript" src="__ADMIN__assets/js/jquery.validate.min.js"></script>
	<script type="text/javascript">
		$(function(){


		})
	</script>
</block>